// page/member/profile.js
Page({
    data: {
        isHide: 0,
        thumb: '',
        nickname: ''
    },

    onLoad: function (options) {
        var that = this
        wx.getUserInfo({
            success: function (res) {
                that.setData({
                    isHide: 1,
                    thumb: res.userInfo.avatarUrl,
                    nickname: res.userInfo.nickName,
                    profile: {
                        birthday: "1998.02.28",
                        sex: "女",
                        phone: "13433212343"
                    }
                })
            }
        })
    }
})